<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>快餐店点餐系统 - 登录</title>
    <style>
        body {
            font-family: "Arial", sans-serif;
            background: linear-gradient(to right, #81c784, #aed581);
            color: #333;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .login-card {
            background: white;
            padding: 40px 30px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            width: 350px;
            text-align: center;
        }

        .login-card h2 {
            color: #388e3c;
            margin-bottom: 20px;
        }

        .login-card label {
            display: block;
            text-align: left;
            font-size: 14px;
            color: #555;
            margin-bottom: 8px;
        }

        .login-card input[type="text"],
        .login-card input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 14px;
            background: #f9f9f9;
        }

        .login-card input[type="text"]:focus,
        .login-card input[type="password"]:focus {
            border-color: #66bb6a;
            outline: none;
            box-shadow: 0 0 5px rgba(102, 187, 106, 0.5);
        }

        .login-card button {
            width: 100%;
            padding: 10px;
            background: #81c784;
            color: white;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .login-card button:hover {
            background: #66bb6a;
        }

        .login-card a {
            display: block;
            margin-top: 15px;
            color: #388e3c;
            text-decoration: none;
            font-size: 14px;
        }

        .login-card a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="login-card">
    <h2>登录</h2>
    <form action="login" method="post">
        <label for="username">用户名</label>
        <input type="text" id="username" name="username" placeholder="请输入用户名" required>

        <label for="password">密码</label>
        <input type="password" id="password" name="password" placeholder="请输入密码" required>

        <button type="submit">登录</button>
    </form>
    <a href="register.jsp">还没有账户？点击注册</a>
</div>
</body>
</html>
